// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import fastClick from 'fastclick'
import 'babel-polyfill'
import axios from './config/axios'
import store from './store'
import './config/appback'


import MetaInfo from 'vue-meta-info'
Vue.use(MetaInfo)


Vue.prototype.$axios = axios
fastClick.attach(document.body)
Vue.config.productionTip = false

/* eslint-disable no-new */ 
new Vue({
    el: '#app',
    router,
    store,
    components: { App },
    template: '<App/>',
    /* 这句非常重要，否则预渲染将不会启动 */
    mounted () {
        document.dispatchEvent(new Event('render-event'))
    }
})
